package com.richest.api.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.richest.api.dao.CommodityRawMaterialMapper;
import com.richest.api.service.ICommodityRawMaterialService;
import com.richest.bean.CommodityRawMaterialBean;

/**
 * 商品和原材料关联信息管理服务接口实现
 * @author 杨博
 * @version richest-api 2.0
 *
 */
@Service
public class CommodityRawMaterialServiceImpl implements ICommodityRawMaterialService {

	@Autowired
	private CommodityRawMaterialMapper mapper;

	@Override
	public Integer commodityRawMaterialAdd(CommodityRawMaterialBean bean) {
		return mapper.commodityRawMaterialAdd(bean);
	}

	@Override
	public Integer commodityRawMaterialUpdate(CommodityRawMaterialBean bean) {
		return mapper.commodityRawMaterialUpdate(bean);
	}

	@Override
	public Integer commodityRawMaterialDelete(Long id) {
		return mapper.commodityRawMaterialDelete(id);
	}

	@Override
	public CommodityRawMaterialBean commodityRawMaterialSelectOne(Long id) {
		return mapper.commodityRawMaterialSelectOne(id);
	}

	@Override
	public List<Map<String, Object>> commodityRawMaterialSelectMap(Map<String, Object> params) {
		return mapper.commodityRawMaterialSelectMap(params);
	}
}
